package system.student.entity;

public class StudentDetail {
    private Integer id;//id
    private Integer studentId;//学生id
    private Integer courseId;//课程id
    private Integer score;//成绩
    private String teacherName;//教师名称
    private String courseName;//课程名称
    private String studentName;//学生名称
    private Long classId;
    private String className;

    /**
     * 格式化输出字符串，用于表格显示
     */
    @Override
    public String toString() {
        return String.format("%-5d | %-10d | %-10d | %-5d | %-15s | %-20s | %-15s | %-5d | %-15s",
                id, studentId, courseId, score, teacherName, courseName, studentName, classId, className);
    }

    public StudentDetail(){}

    public StudentDetail(Integer id, Integer studentId, Integer courseId, Integer score, String teacherName, String courseName,  String studentName) {
        this.id = id;
        this.studentId = studentId;
        this.courseId = courseId;
        this.score = score;
        this.teacherName = teacherName;
        this.courseName = courseName;
        this.studentName = studentName;
    }
    public Integer getId() {return id;}

    public void setId(Integer id) {this.id = id;}

    public Integer getStudentId() {return studentId;}

    public void setStudentId(Integer studentId) {this.studentId = studentId;}

    public Integer getCourseId() {return courseId;}

    public void setCourseId(Integer courseId) {this.courseId = courseId;}

    public Integer getScore() {return score;}

    public void setScore(Integer score) {this.score = score;}

    public String getTeacherName() {return teacherName;}

    public void setTeacherName(String teacherName) {this.teacherName = teacherName;}

    public String getCourseName() {return courseName;}

    public void setCourseName(String courseName) {this.courseName = courseName;}

    public void setStudentName(String studentName) {this.studentName = studentName;}

    public String getStudentName() {return studentName;}

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}

